package im.eg.springdemo.stuffs;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanNameAware;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.config.BeanPostProcessor;
import org.springframework.stereotype.Component;

@Component
public class UserService implements BeanNameAware, InitializingBean {
    public void setBeanName(String s) {
        System.out.println("Aware - setBeanName...");
    }

    public void afterPropertiesSet() throws Exception {
        System.out.println("InitializingBean - afterPropertiesSet...");
    }
}
